<template>
  <div class="rightArea">
    <div class="rightTop">资源动态</div>

    <div class="rightBottom">
      <!-- search -->
      <div class="search">
        <div class="search_left">
          <i></i>
          <input type="text" class="ipt" />
          <button class="btn">搜索</button>
        </div>
        <!-- 资源类型 -->
        <div class="search_right">
          <div class="resource_type">
            <label class="label">资源类型:</label>
            <div class="left-select">
              全部资源
              <span class="icon">
                <el-icon><ArrowDown /></el-icon>
              </span>
            </div>
          </div>

          <div class="resource_state">
            <label class="label">状态:</label>
            <div class="right-select">
              全部
              <span class="icon">
                <el-icon><ArrowDown /></el-icon>
              </span>
            </div>
          </div>
        </div>
      </div>

      <!-- 
        table
      :data="tableData"
      -->
      <el-table style="width: 95%">
        <el-table-column label="内容" width="410" header-align="center" />
        <el-table-column label="发布时间" width="150" />
        <el-table-column label="数据" width="134" />
        <el-table-column label="状态" width="133" />
        <el-table-column label="操作" width="133" />
      </el-table>
    </div>
  </div>
</template>
<script lang="ts">
import { ArrowDown, ArrowRight } from "@element-plus/icons-vue";

export default {
  data() {
    return {};
  },
  components: {
    ArrowDown,
    ArrowRight,
  },
};
</script>

<script setup lang="ts"></script>

<style scoped lang="less">
//右侧
.rightArea {
  width: 1020px;
  height: 875px;
  margin-left: 10px;

  .rightTop {
    width: 1020px;
    height: 72px;
    line-height: 72px;
    color: #111;
    font-size: 14px;
    padding-left: 45px;
    box-sizing: border-box;
    background-color: #fff;
    margin-bottom: 10px;
  }

  .rightBottom {
    width: 100%;
    height: 100%;
    background-color: #fff;

    // search
    .search {
      width: 100%;
      height: 72px;
      // background-color: pink;
      display: flex;
      align-items: center;
      padding: 16px 30px;
      box-sizing: border-box;

      //整个 input+btn
      .search_left {
        width: 342px;
        height: 40px;
        margin-right: 30px;
        display: flex;
        align-items: center;
        .ipt {
          width: 223px;
          height: 38px;
          border: 1px solid #eaecf0;
          padding-left: 30px;
          padding-right: 15px;
          background-color: #f5f7f9;
          border-radius: 5px;
        }
        .btn {
          width: 52px;
          height: 40px;
          margin-left: 10px;
          background-color: #f5f7f9;
          border: none;
          color: #7d8090;
          border-radius: 5px;
          margin-right: 30px;
        }
      }
      // search-right
      .search_right {
        width: 542px;
        height: 72px;
        display: flex;
        // 资源类型
        .resource_type {
          width: 277px;
          height: 72px;
          display: flex;
          align-items: center;
          .label {
            width: 70px;
            margin-right: 10px;
          }
          .left-select {
            position: relative;
            width: 145px;
            height: 30px;
            line-height: 30px;
            padding-left: 15px;
            padding-right: 30px;
            cursor: pointer;
            border: 1px solid #dcdfe6;
            border-radius: 5px;
            .icon {
              line-height: 30px;
            }
          }
        }
        // 状态
        .resource_state {
          width: 277px;
          height: 100%;
          display: flex;
          align-items: center;
          margin-left: 12px;
          .label {
            margin-right: 10px;
          }
          .right-select {
            width: 145px;
            height: 30px;
            line-height: 30px;
            padding-left: 15px;
            padding-right: 30px;
            cursor: pointer;
            border: 1px solid #dcdfe6;
            border-radius: 5px;
            display: flex;
            align-items: center;
          }
        }
      }
    }
  }
}
</style>
